package com.ruoyi.mall.pms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mall.pms.mapper.PmsMemberPriceMapper;
import com.ruoyi.mall.pms.domain.PmsMemberPrice;
import com.ruoyi.mall.pms.service.IPmsMemberPriceService;

/**
 * 商品会员价格Service业务层处理
 * 
 * @author xuxing
 * @date 2021-02-04
 */
@Service
public class PmsMemberPriceServiceImpl implements IPmsMemberPriceService 
{
    @Autowired
    private PmsMemberPriceMapper pmsMemberPriceMapper;

    /**
     * 查询商品会员价格
     * 
     * @param id 商品会员价格ID
     * @return 商品会员价格
     */
    @Override
    public PmsMemberPrice selectPmsMemberPriceById(Long id)
    {
        return pmsMemberPriceMapper.selectPmsMemberPriceById(id);
    }

    /**
     * 查询商品会员价格列表
     * 
     * @param pmsMemberPrice 商品会员价格
     * @return 商品会员价格
     */
    @Override
    public List<PmsMemberPrice> selectPmsMemberPriceList(PmsMemberPrice pmsMemberPrice)
    {
        return pmsMemberPriceMapper.selectPmsMemberPriceList(pmsMemberPrice);
    }

    /**
     * 新增商品会员价格
     * 
     * @param pmsMemberPrice 商品会员价格
     * @return 结果
     */
    @Override
    public int insertPmsMemberPrice(PmsMemberPrice pmsMemberPrice)
    {
        return pmsMemberPriceMapper.insertPmsMemberPrice(pmsMemberPrice);
    }

    /**
     * 修改商品会员价格
     * 
     * @param pmsMemberPrice 商品会员价格
     * @return 结果
     */
    @Override
    public int updatePmsMemberPrice(PmsMemberPrice pmsMemberPrice)
    {
        return pmsMemberPriceMapper.updatePmsMemberPrice(pmsMemberPrice);
    }

    /**
     * 批量删除商品会员价格
     * 
     * @param ids 需要删除的商品会员价格ID
     * @return 结果
     */
    @Override
    public int deletePmsMemberPriceByIds(Long[] ids)
    {
        return pmsMemberPriceMapper.deletePmsMemberPriceByIds(ids);
    }

    /**
     * 删除商品会员价格信息
     * 
     * @param id 商品会员价格ID
     * @return 结果
     */
    @Override
    public int deletePmsMemberPriceById(Long id)
    {
        return pmsMemberPriceMapper.deletePmsMemberPriceById(id);
    }
}
